<template>
	<view class="wrap">
		<image src="../../../static/images/img/icon_success.png"></image>
		<view class="successContent">{{code==1?'预约':'送洗'}}成功</view>
		<view class="wrapBtn" @click="goMyuser">查看详情</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				code:''
			}
		},
		onLoad(options) {
			this.code = options.code
		},
		methods:{
			goMyuser(){
				if(this.code==1){
					uni.redirectTo({
						url:'/pages_category_page1/tabbar/measure/myMeasure'
					})	
				}else{
					uni.redirectTo({
						url:'/pages/secondaryPage/index/laundry'
					})	
				}
			}
		}
	}
</script>
<style>
	page{
		height: 100%;
	}
</style>
<style scoped lang="scss">
	.wrap{
		padding-top: 72upx;
		height: 100%;
		background: #F6F6F6;
		image{
			width: 100upx;
			height: 100upx;
			display: block;
			margin: 0 auto;
		}
		.successContent{
			font-size: 28upx;
			color: #333;
			text-align: center;
			margin:16upx 0 48upx 0;
		}
		.wrapBtn{
			width: 240upx;
			height: 88upx;
			background-color: #EFB257;
			text-align: center;
			line-height: 88upx;
			color: #fff;
			font-size: 28upx;
			border-radius: 100upx;
			margin: 0 auto;
		}
	}
</style>